package answer_01;

public class Student extends Person {
        int stuId;
        String className;
        Student(){}
        Student(String name,int age,String address,String className,int stuId){
            super(name,address,age);
            this.className=className;
            this.stuId=stuId;
        }
        void study(){
            System.out.println("班级："+className+"学号"+stuId+"名字"+name+"在学习");
        }
        void sayHi(){
            System.out.println("班级："+className+"学号"+stuId+"名字"+name+"在打招呼");
        }


}
